Skip to content

Fix header link #1263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 9, 2017
Merged

Fix header link #1263

merged 2 commits into from
Nov 9, 2017

Conversation

Justineo
Copy link
Member

@Justineo Justineo commented Nov 9, 2017

Fix the problem that headers are covered by the top menu and also keep them clickable.

if (node !== wrapper) {
wrapper.appendChild(node)
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found that just remove these additions here and all the modifications in page.style could work (in Safari 11 in my Mac), which means just keeping setAttribute('data-scroll', '') only in function makeHeaderClickable is OK.

@@ -23,7 +23,7 @@ $header-inner-height = 41px
$heading-padding-vertical = 10px
$header-height = $header-inner-height + $heading-padding-vertical * 2
$mobile-header-height = 40px
$heading-link-padding-top = $content-padding-top
$mobile-heading-link-padding-top = $content-padding-top
$heading-link-padding-top = $header-height + $content-padding-top
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the former mistake, I advice to add some comment here and function makeHeaderClickable() (whatever it will become finally).

@Justineo
Copy link
Member Author

Justineo commented Nov 9, 2017

@Jinjiang Done.

@chrisvfritz chrisvfritz merged commit b73f126 into vuejs:master Nov 9, 2017
chrisvfritz added a commit that referenced this pull request Nov 15, 2017
@chrisvfritz
Copy link
Contributor

Had to revert this unfortunately to fix #1273, but I'm happy to accept another similar PR.

@Justineo
Copy link
Member Author

Justineo commented Nov 15, 2017

@chrisvfritz Fixed that in #1280.

image

kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Nov 24, 2017
* update sponsor link

* update sponsor image

* Fix header link (vuejs#1263)

* fix header link

* fix cr
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants